﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartLib.Attributes
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
    public class TableAttribute : Attribute
    {
        /// <summary>
        /// 表名
        /// </summary>
        public string TableName { get; set; }

        /// <summary>
        /// TableAttribute
        /// </summary>
        /// <param name="tableName">表名</param>
        public TableAttribute(string tableName)
        {
            TableName = tableName;
        }

        public TableAttribute() { }
    }
}
